<?php
	define('OBJTYPE_CORE_OBJECT',1);
	define('OBJTYPE_MODEL',2);
	define('OBJTYPE_CONTROLLER',3);
	define('OBJTYPE_HELPER',4);
	define('OBJTYPE_VIEW',5);
	define('OBJTYPE_WIDGET',6);
	define('OBJTYPE_DATABASE',7);
	define('OBJTYPE_CORE',8);
	define('OBJTYPE_DATATYPE',9);
	
	class Object {
		
		protected $name;
		protected $log = array();
		
		public function getObjType() {
			
			return OBJTYPE_CORE_OBJECT;
			
		}
		
		public function appendToLog($message) {
			
			$this->log[] = array('timestamp' => time(), 'message' => $message);
			
		}
		
		public function getLog() {
			
			return $this->log();
		}
		
		public function clearLog() {
			
			$this->log = array();
		}
		
	}
	
	